package pl.gwt.client.common;

import java.io.Serializable;
import java.util.List;

public class Client implements Serializable{

	private static final long serialVersionUID = 1L;

	String name;
	String phone_no;
	String address;
	String country;
	String city;
	//String state;
	List<Project> projects;
	
	boolean isInitiate;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone_no() {
		return phone_no;
	}

	public void setPhone_no(String phone_no) {
		this.phone_no = phone_no;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public List<Project> getProjects() {
		return projects;
	}

	public void setProjects(List<Project> projects) {
		this.projects = projects;
	}

	public Client(){
		super();
		this.isInitiate = false;
	}
	
	public boolean isInit(){		
		return isInitiate;
	}
	
	public void init(String name, String phone_no, String address, String country,
			String city, List<Project> projects) {
//		super();
		this.name = name;
		this.phone_no = phone_no;
		this.address = address;
		this.country = country;
		this.city = city;
		this.projects = projects;
		this.isInitiate = true;
	}	
	
}
